package zhaopingshuju;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class a {
    public static void main(String[] args) {
        String line = "{\n" +
                "    \"id\":4,\n" +
                "    \"company_name\":\"智联招聘网/Zhaopin.com\",\n" +
                "    \"eduLevel_name\":\"本科\",\n" +
                "    \"emplType\":\"全职\",\n" +
                "    \"jobName\":\"大数据工程师010\",\n" +
                "    \"salary\":\"20K-30K\",\n" +
                "    \"createDate\":\"2019-04-21T12:14:27.000+08:00\",\n" +
                "    \"endDate\":\"2019-05-21T12:14:27.000+08:00\",\n" +
                "    \"city_code\":\"530\",\n" +
                "    \"companySize\":\"1000-9999人\",\n" +
                "    \"welfare\":\"\",\n" +
                "    \"responsibility\":\"岗位职责：1、负责体系大数据分析的ETL的代码开发及优化；2、...\",\n" +
                "    \"place\":\"北京市朝阳区望京阜荣街10号首开广场5层\",\n" +
                "    \"workingExp\":\"1-3年\"\n" +
                "}";
        Object object = JSON.parseObject(line);
        System.out.println(object);
        JSONObject jsonObject = JSONObject.parseObject(line);
        String[] data = new String[14];
        data[0] = jsonObject.getString("id");
        System.out.println(data[0]);
    }
}
